﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true"
    CodeBehind="Locacao.aspx.cs" Inherits="Locadora.Views.Home.About" %>

<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="corpo">
        <h2>
            Locação de Filme</h2>
        <div class="notes">
            <h4>
                Locação</h4>
            <p>
                Please enter your full email address, for example, <strong>name@domain.com</strong></p>
            <p>
                It is important that you provide a valid, working email address that you have access
                to as it must be verified before you can use your account.</p>
            <p>
                Please enter a land line number, not a mobile phone number.</p>
            <p class="last">
                Your phone number will not be shared or used for telemarketing. Your information
                is protected by our <a title="View our Privacy Policy" href="http://jeffhowden.com/legal/privacy_policy/">
                    Privacy Policy</a>.</p>
        </div>
        <form action="/Filme/Locar/<%= ViewData["Id"] %>">
        <% if (ViewData["ErrorMessage"] != null)
           { %>
        <p class="erro">
            OCORREU UM ERRO:
            <br />
            <%= ViewData["ErrorMessage"] %>
        </p>
        <br />
        <br />
        <% } %>
        <%= ViewData["YouTube"] %>
        <table>
            <tr>
                <td>
                    Título:
                </td>
                <td>
                    <%= ViewData["Titulo"] %>
                </td>
            </tr>
            <tr>
                <td>
                    Ator:
                </td>
                <td>
                    <%= ViewData["Ator"] %>
                </td>
            </tr>
            <tr>
                <td>
                    Diretor:
                </td>
                <td>
                    <%= ViewData["Diretor"] %>
                </td>
            </tr>
            <tr>
                <td>
                    Duração:
                </td>
                <td>
                    <%= ViewData["Duracao"] %>
                </td>
            </tr>
            <tr>
                <td>
                    Nota:
                </td>
                <td>
                    <% for (int i = 0; i < int.Parse(ViewData["Nota"].ToString()); i++)
                       { %>
                    <img src="../../Content/images/star10x10.gif" />
                    <%} %>
                </td>
            </tr>
            <tr>
                <td>
                    Tipo Mídia:
                </td>
                <td>
                    <%= ViewData["Tipo"] %>
                </td>
            </tr>
            <tr>
                <td>
                    Data Locação:
                </td>
                <td>
                    <%= DateTime.Now.ToShortDateString() %>
                </td>
            </tr>
            <tr>
                <td>
                    Data Devolução:
                </td>
                <td>
                    <%= DateTime.Now.AddDays(5).ToShortDateString() %>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <!-- <input type="hidden" name="coUsuario" value="<%= Session["CO_USUARIO"] %>" /> -->
                    <input type="hidden" name="coUsuario" value="<%= (Membership.GetUser(Page.User.Identity.Name)).ProviderUserKey.ToString()%>" />
                    <input type="hidden" name="situacao" value="<%= ViewData["Situacao"] %>" />
                    <input type="submit" value="<%=ViewData["TextoSubmit"] %>" /> 
                    
                </td>
            </tr>
        </table>
        </form>
    </div>
</asp:Content>
